package com.btpj.hospital_server.dto.param;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * visit_plan
 *
 * @author BTPJ
 */
@ApiModel("出诊计划参数")
@Data
public class VisitPlanParam implements Serializable {
    @ApiModelProperty(value = "医院编号")
    private Long hospitalId;

    @ApiModelProperty(value = "专科编号")
    private Long specialId;

    @ApiModelProperty(value = "门诊编号")
    private Long outpatientId;

    @ApiModelProperty(value = "诊室编号")
    private Long clinicId;

    @ApiModelProperty(value = "医生编号")
    private Long doctorId;

    @ApiModelProperty(value = "时间段 1：上午，2：下午")
    @Range(min = 1, max = 2, message = "时间段必须传递1(上午)或2(下午)")
    private Integer time;

    @ApiModelProperty(value = "出诊日期(yyyy-MM-dd HH:mm:ss)")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date day;

    private static final long serialVersionUID = 1L;
}